//
//  UILabel+Rx.swift
//  RXmvvmDemo
//
//  Created by jemi on 2020/1/3.
//  Copyright © 2020 jemi. All rights reserved.
//

import UIKit
import RxSwift
import RxCocoa

extension Reactive where Base: UILabel {
    var validationResult: Binder<ValidationResult> {
        return Binder(base) { label , result in
            
            label.textColor = result.textColor
            label.text = result.description
        }
    }
}
